$def with (row)
<table>
	<form method='POST'>
		<tr><th>subnet</th><td><input type='text' name='subnet' value=$row[0]></td></tr>
		<tr><th>serial</th><td><input type='text' name='serial' value=$row[1]></td></tr>
		<tr><th>lease_time</th><td><input type='text' name='lease_time' value=$row[2]></td></tr>
		<tr><th>subnet_mask</th><td><input type='text' name='subnet_mask' value=$row[3]></td></tr>
		<tr><th>broadcast_address</th><td><input type='text' name='broadcast_address' value=$row[4]></td></tr>
		<tr><td></td><td><input type='submit' name='submit_subnet' value='UpdateSubnet'></td></tr>
	</form>
</table>
